home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / gas / testsuite / gasp / pl6.asm < prev    next >
Encoding:
Assembly Source File  |  1996-07-04  |  306 b   |  22 lines

  1.     .ALTERNATE
  2. ! test of expression operator
  3. define     MACRO     val, string
  4.     SDATA     val
  5.     SDATA    string
  6.     ENDM
  7.     define "1","99%of100"    ! notice % within string
  8.     define     %1 + 2, "=3"
  9.  
  10.  
  11.     define     % 1 + 2 %3+4
  12.  
  13.     define    %3*4-2  <=10>
  14.  
  15.     define    %3*4-2  5
  16.  
  17.     define    %1 + 2,<is equal to %1 + 2, right?>
  18.  
  19.     ! has no effect
  20.  
  21.     end
  22.